//
//  CustomAlertViewController.h
//  We365
//
//  Created by Bui Thien An on 12/16/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kImageTag 0 
#define kNameTag 1

@protocol AlertTableViewDelegate

-(void)didSelectRowAtIndex:(NSInteger)row withContext:(id)context;

@end

@interface CustomAlertViewController : UIAlertView <UITableViewDelegate, UITableViewDataSource>{
    UITableView *myTableView;
    id<AlertTableViewDelegate> caller;
    id context;
    NSArray *data;
    NSArray *images;
    int tableHeight;    
}

@property(nonatomic, retain) id<AlertTableViewDelegate> caller;
@property(nonatomic, retain) id context;
@property(nonatomic, retain) NSArray *data;
@property(nonatomic, retain) NSArray *images;

-(id)initWithCaller:(id<AlertTableViewDelegate>)_caller data:(NSArray*)_data images:(NSArray *)_images title:(NSString*)_title andContext:(id)_context;

@end

@interface CustomAlertViewController(HIDDEN)

-(void)prepare;

@end

